<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>心动予你</title>
    <style>
        body{
            background-color: pink;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        /* 给容器内边 外边设置为0 */
        *{
            margin: 0;
            padding: 0;
        }
        .zhengfangxing{
            width: 200px;
            height: 200px;
            background-color: red;
            position: relative;
            transform: rotate(45deg);
            animation: tiaodongdexin 1s alternate infinite;
            box-shadow: 0 0 30px red;
            
        }
        .zhengfangxing::before{
            content: "";
            width: 200px;
            height: 100px;
            background-color: red;
            position: absolute;
            top: -100px;
            left: 0px;
            border-radius: 100px 100px 0 0;
            box-shadow: 0 0 30px red;

        }
        .zhengfangxing::after{
            content: "";
            width: 100px;
            height: 200px;
            background-color: red;
            position: absolute;
            left: -100px;
            top: 0px;
            border-radius: 100px 0 0 100px;
            box-shadow: 0 0 30px red;
         

        

        }
        /* 注意：给容器的宽度和高度都充满全屏 */
        html,body{
            width: 100%;
            height: 100%;
        }
        /* 定义动画 */
     @keyframes tiaodongdexin{
        0%{
           transform: rotate(45deg) scale(0.6);
        }
        /* 25%{
            transform: rotate(45deg) scale(0.8);
        }
        50%{
            transform: rotate(45deg) scale(1);
        }
        75%{
            transform: rotate(45deg) scale(1.2);
        } */
        100%{
            transform: rotate(45deg) scale(1.4);
            
        }

     }
 
    </style>
</head>
<body>
    <div class="zhengfangxing"></div>

    
</body>
</html>